#include <iostream>
#include <vector>
using namespace std;

int main()
{
	auto tmp = [](int x) {
		return x % 3 == 0;
	};
	int cnt = count_if(1, 10000, tmp);

	vector<int> v;
	v.reserve(cnt);
	for (int i = N - 1; i >= 0; i--)
	{
		if (tmp(i))
		{
			v.push_back(i);
		}
	}

	return 0;
}